import { Label } from 'cc';
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('UIManager')
export class UIManager extends Component {

    @property(Label)
    wood_lab : Label = null;

    @property(Label)
    meat_lab : Label = null;

    start() {
        this.updateWoodNumber(0);
        this.updateMeatNumber(0);
    }

    updateWoodNumber(value){
        this.wood_lab.string = value + "";
    }

    updateMeatNumber(value){
        this.meat_lab.string = value + "";
    }

    clickDown(){
        console.log("点击下载");
    }

    update(deltaTime: number) {
        
    }
}


